<h1>Editing ingredient type</h1>

<%= error_messages_for :ingredient_type %>

<% form_for(@ingredient_type) do |f| %>
  <p>
  	Name of Ingredient <%= f.text_field :name%>
  </p>
  <p>
  	Unit of Measure <%= f.text_field :unit%>
  </p>
  <p>
  	Cost per Unit <%= f.text_field :cost%>
  </p>
  <p>
    <%= f.submit "Update" %>
  </p>
  <p>
  	<%= link_to 'Delete', @ingredient_type, :confirm => 'Are you sure?', :method => :delete %>
  </p>
<% end %>

<%= link_to 'Show', @ingredient_type %> | <%= link_to 'Back', ingredient_types_path %>
